package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.pro.detailtab.dto.team.TeamDetailEditLabelDTO;
import com.xbongbong.saas.domain.entity.UserTeamEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *团队标签
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicTeamLabelDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812524L;

    private TeamDetailEditLabelDTO teamDetailEditLabelDTO;

    private UserTeamEntity userTeamEntity;

    public static DynamicTeamLabelDTO initDynamicTeamLabelDTO(TeamDetailEditLabelDTO teamDetailEditLabelDTO, UserTeamEntity userTeamEntity) {
        DynamicTeamLabelDTO dynamicTeamLabelDTO = new DynamicTeamLabelDTO();
        dynamicTeamLabelDTO.setUserTeamEntity(userTeamEntity);
        dynamicTeamLabelDTO.setTeamDetailEditLabelDTO(teamDetailEditLabelDTO);
        return dynamicTeamLabelDTO;
    }
}
